<?php
session_start();
include('fungsi_admin.php');
if (!empty($_SESSION['user'])){
?>
<html>
	<head>
		<title>BudiNews.com</title>
		<link rel="stylesheet" type="text/css" href="../admin/css/mos-css/mos-style.css">
		<!--pemanggilan file css-->
	</head>
	<body>
		<div id="header">
			<div class="inHeader">
				<div class="mosAdmin">
					Selamat Datang Dihalaman Admin BudiNews.com
					<br/>
					<a href="keluar.php">Keluar</a>
				</div>
				<div class="clear">
				</div>
			</div>
		</div>
		<div id="wrapper">
			<div id="leftBar">
				<ul>
					<li>
						<a href="dashboard.php">Berita</a>
					</li>
					<li>
						<a href="kategori_tampil.php">Kategori</a>
					</li>
					<li>
						<a href="keluar.php">Keluar</a>
					</li>
				</ul>
			</div>
			<div id="rightContent">
				<h3>Halaman Admin BudiNews.com</h3>
				<div class="quoteOfDay">
					<b>Selamat Datang Dihalaman Admin BudiNews.com</b>
					<br>
					<i style="color: #5b5b5b;">"Belajar dan Amalkan"</i>
				</div>
				<div class="shortcutHome">
					<a href="tambah_berita.php">
					<img src="../admin/css/mos-css/img/bukutamu.png">
					<br>
					Tambah Berita
					</a>
				</div>
				<div class="shortcutHome">
					<a href="pengaturan_berita.php">
					<img src="../admin/css/mos-css/img/halaman.png">
					<br>
					Daftar Berita
					</a>
				</div>
				<div class="clear">
				</div>
			</div>
			<div class="clear">
			</div>
			<div id="footer">
				&copy; 2014 Created by |
				<a href="../pwl">BudiNews.com</a>
			</div>
		</div>
	</body>
</html>
<?php
}else{
echo "anda tidak berhak";
}
?>